package com.hkts.management.orderrecord.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hkts.management.mybaitsplus.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author hml
 * @since 2021-04-22
 */
@ApiModel(value = "订单记录")
public class HktsOrderRecord extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    private String id;
    @ApiModelProperty(value = "订单id")
    private String orderId;
    @ApiModelProperty(value = "记录内容")
    private String record;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getRecord() {
        return record;
    }

    public void setRecord(String record) {
        this.record = record;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public static final String ID = "id";

    public static final String ORDER_ID = "order_id";

    public static final String RECORD = "record";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "HktsOrderRecord{" +
                ", id=" + id +
                ", orderId=" + orderId +
                ", record=" + record +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                "}";
    }
}
